var environment = {
	language:"en" //改变这里的值。来切换中英文
}
var langFiles = {
	en:require("./i18n/en.js").lang,
	de:require("./i18n/de.js").lang
}
exports.lang = function(key) {
	return "";
}

exports.getEnvironment = function () {
	return environment.language;
}

exports.setEnvironment = function (params) {
	environment.language = params;
}

setTimeout(function(){
	
	exports.lang = function(key) {
		if (environment.language == "en") {
			return langFiles.en[key] || "not find";
		}else if (environment.language == "de") {
			return langFiles.de[key] || "not find";
		}
		return key;
	}
},100);